home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr53 / pctv4n_1.zip / XQLDEFS.H < prev    next >
Text File  |  1993-06-11  |  1KB  |  58 lines

  1. /**************************************************
  2. *
  3. * FILE NAME: xqldefs.h  TITLE:  definitions for XQL
  4. *
  5. * AUTHOR:      Ken North
  6. *
  7. * SYNOPSIS: constants for Netware SQL / XQLM
  8. *            program example
  9. *
  10. **************************************************/
  11.  
  12. #ifndef __XQLDEFS_H
  13. #define __XQLDEFS_H
  14.  
  15. #ifndef __XQLMSG_H
  16. #include "xqlmsg.h"            /* XQL message codes */
  17. #endif
  18.  
  19. #ifndef TRUE
  20. #define     TRUE            1
  21. #endif
  22.  
  23. #ifndef FALSE
  24. #define     FALSE           0
  25. #endif
  26.  
  27. typedef    int                HSTMT;
  28. typedef    int                HCUR;
  29.  
  30. #define SQL_SUCCESS     0
  31.  
  32.                         /* XQLFetch option values */
  33. #define    FETCHCURRENT    0
  34. #define    FETCHFIRST        1
  35. #define    FETCHNEXT        2
  36. #define    FETCHPREVIOUS    3
  37. #define    FETCHLAST        4
  38.  
  39.        /* XQLFetch ASCII flag (separator ) values */
  40. #define    PACK            0
  41. #define    STOREBLANKS        1
  42. #define    STOREZEROS        2
  43.  
  44. #define    NAMELENGTH    44
  45.  
  46.                     /* length of variable field */
  47. #define    VARLENGTH    78
  48.  
  49. #define    MAXSQL             512
  50.                     /* max fields per SQL record */
  51. #define    MAXFIELD    80
  52.  
  53.            /* size of record buffer (char array) */
  54. #define    XRECSIZE        20000
  55.  
  56. #endif
  57.  
  58.